@font-face {
  font-family: "League Gothic";
  src: url("fonts/League_Gothic.otf") format("opentype");
}

body * {
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  height: 2000px;
}
a img {
  border: 0;
}
#widget {
  position: relative;
  width: 720px;
  height: 480px;
  overflow: hidden;
  background-color: black;
  color: white;
  text-transform: uppercase;
  font-size: 36px;
  font-family: "League Gothic", Impact, "Arial Narrow", sans-serif;
  margin-bottom: 15px;
}
.header {
  margin: 10px;  
}
#warning {
  color: red;
  margin: 10px;
}
.page {
  width: 640px;
  height: 400px;
  position: absolute;
  left: 0;
  top: 0;
  padding: 40px;
  background-color: #00aef0;
  color: #000;
}
#welcome {
  text-align: center;
}
#test, #results {
  display: none;
}
#test {
  background-color: #3cb878;
}


/* Base styles */

h1, h2, h3 {
  position: relative;
  margin: 0;
  padding: 0;
  font-weight: normal;
}
h1 {
  font-size: 72px;
}
h2 {
  font-size: 48px;
}
h2 em {
  font-style: normal;
  color: white;
}
h2.centered {
  text-align:center;
}
h3 {
  font-size: 36px;
}

.button {
  padding: 3px 20px;
  border: 4px solid white;
  -moz-border-radius: 50px;
  -webkit-border-radius: 50px;
  border-radius: 50px;
  background-color: #4d4d4d;
  color: white;
  cursor: pointer;
  text-decoration: none;
}
.button:hover {
  background-color: #000;
}
.controls .button {
  -moz-box-shadow: 0 3px 5px #000;
}

.backendButton {
  width: 200px;
  height: 50px;
  font-size: 24px;
  margin: 10px; 
}

.active {
  background-color:black;
}

.backendButton:disabled {
  background-color:gray;
  cursor: default;
}


/* Welcome page */

.page .status,
.page .controls {
  width: 640px;
  position: absolute;
  left: 40px;
  bottom: 40px;
  text-align: center;
}
body.initializing .page .controls,
body.ready .page .status {
  display: none;
}
body.ready .page .controls,
body.initializing .page .status {
  display: block;
}

#welcome .info {
  padding-top: 10px;
  text-transform: none;
  font: 13px/18px verdana, helvetica, arial, sans-serif;
}
#welcome .info .logo {
  margin-bottom: 30px;
}
#welcome .info p {
  margin-bottom: 20px;
}
#welcome .info a {
  color: white;
  font-weight: bold;
}


/* Test */

#test .locations {
  width: 640px;
  position: absolute;
  left: 40px;
  top: 400px;
  color: white;
  font-size: 32px;
  line-height: 32px;
}
#test .location {
  position: absolute;
  top: 0;
}
#test .location.local {
  right: 0;
  text-align: right;
}
#test .location.remote {
  left: 0;
  text-align: left;
}
#test .location .address {
  margin-top: 10px;
  color: black;
  font: bold 13px/13px verdana, helvetica, arial, sans-serif;
}

#uploadGauge {
  position: absolute;
  left: 40px;
  top: 120px;
  overflow: hidden;
}

#downloadGauge {
  position: absolute;
  left: 380px;
  top: 120px;
  overflow: hidden;
}

#rtt {
  position: absolute;
  left: 320px;
  top: 320px;
  color: white;
  font: bold 20px/20px verdana, helvetica, arial, sans-serif;
}

#rttValue {
  position: relative;
  text-align: center;   
  left: -30px;
  width: 100px;
  color: black;
}

/* Test results */

#results {
  height: 400px;
}
#result-pages {
  width: 640px;
  height: 280px;
  position: absolute;
  left: 40px;
  top: 100px;
}
#result-pages .result-page {
  width: 640px;
  height: 280px;
  position: absolute;
  left: 0;
  top: 0;
  display: none;
}
#results.summary #result-pages .result-page.summary,
#results.details #result-pages .result-page.details,
#results.advanced #result-pages .result-page.advanced {
  display: block;
}
#result-pages .details,
#result-pages .advanced {
  overflow: auto; 
  text-transform: none;
  font: 13px/18px verdana, arial, helvetica, sans-serif;
}
#result-pages .advanced {
  white-space: pre;
}
#results .result {
  width: 268px;
  height: 180px;
  position: absolute;
  top: 0px;
  padding: 20px;
  border: 1px solid white;
}
#results .result .number {
  font-size: 128px;
  line-height: 128px;
  color: white;
}
#results .result .units {
  font-size: 48px;
  text-transform: none;
}
#results .upload {
  left: 0;
}
#results .download {
  right: 0;
}
#results .other {
  position: absolute;
  top: 240px;
  text-transform: none;
  font: 13px/18px verdana, arial, helvetica, sans-serif;
}
#results .controls {
  width: 320px;
  left: 360px;
  text-align: right;
}
#results .branding {
  position: absolute;
  width: 320px;
  left: 40px;
  bottom: 24px;
  text-transform: none;
  font: 11px/16px verdana, arial, helvetica, sans-serif;
}
#results .branding a {
  color: black;
}


#results .view-selector {
  position: absolute;
  right: 40px;
  top: 60px;
  font-size: 18px;
  line-height: 18px;
}
#results .view-selector .summary {
  border-width: 2px 1px 2px 2px;
  padding-right: 15px;
  -moz-border-radius: 15px 0 0 15px;
  -webkit-border-radius: 15px 0 0 15px;
  border-radius: 15px 0 0 15px;
}
#results .view-selector .details {
  border-width: 2px 1px;
  padding-left: 15px;
  padding-right: 15px;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border-radius: 0;
}
#results .view-selector .advanced {
  border-width: 2px 2px 2px 1px;
  padding-left: 15px;
  -moz-border-radius: 0 15px 15px 0;
  -webkit-border-radius: 0 15px 15px 0;
  border-radius: 0 15px 15px 0;
}
#results.summary .view-selector .summary,
#results.details .view-selector .details,
#results.advanced .view-selector .advanced {
  background-color: #000;
}


